//
//  EPUploader.h
//  iPhoneDev02
//
//  Created by smu on 11-7-26.
//  Copyright 2011年 duk. All rights reserved.
//

#import <Foundation/Foundation.h>


@interface EPUploader : NSObject {
    NSURL *serverURL;
    NSString *filePath;
    id delegate;
    SEL doneSelector;
    SEL errorSelector;
    BOOL uploadDidSucceed;
}

-   (id)initWithURL: (NSURL *)serverURL
           filePath: (NSString *)filePath
           delegate: (id)delegate
       doneSelector: (SEL)doneSelector
      errorSelector: (SEL)errorSelector;
-   (NSString *)filePath;

@end


/*


 使用方法
 [[EPUploader alloc] initWithURL:[NSURL URLWithString:@"http://yourserver.com/uploadDB.php"]
 filePath:@"path/to/some/file"
 delegate:self
 doneSelector:@selector(onUploadDone:)
  
 errorSelector:@selector(onUploadError:)];




*/